﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _1.SchoolExercise.Model
{
    public class Student
    {        
        private string name;
        public string Name
        {
            get { return this.name; }
            set
            {
                if (value == null)
                {
                    throw new ArgumentNullException("Name");
                }

                if (value == String.Empty)
                {
                    throw new ArgumentException("Name cannot be empty.");
                }

                this.name = value;
            }
        }

        private int facultyNumber;
        public int FacultyNumber
        {
            get { return this.facultyNumber; }            
        }

        internal Student(string name, int facultyNumber)    
        {
            this.Name = name;
            this.facultyNumber = facultyNumber;
        }
    }
}
